package com.soft.mainsite.module.data.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * AppointmentQueryParams.java 此类用于预约查询参数
 *
 * @author:李昭阳
 * @date:2019/5/5 0005
 * @remark:
 */
@Data
public class AppointmentQueryParams {

    @ApiModelProperty(value = "自增id")
    private Integer id;

    @ApiModelProperty(value = "资料id")
    private Integer dataId;

    @ApiModelProperty(value = "用户手机号")
    private String userPhone;

    @ApiModelProperty(value = "资料是否被领取，0未领取，1已领取")
    private Integer isReceived;

    @ApiModelProperty(value = "资料是否被收藏，0未收藏，1已收藏")
    private Integer isFavorite;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT +8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("办理状态")
    private Integer status;

    @ApiModelProperty(value = "资料标题")
    private String dataTitle;

    @ApiModelProperty(value = "资料所属分类id")
    private Integer categoryId;

    @ApiModelProperty(value = "资料学科分类名字")
    private String categoryName;
}
